package com.zbowen.invoice.web.ivabook;

import com.zbowen.invoice.base.dto.IvaBookDto;
import com.zbowen.invoice.base.service.IvaBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * 前端请求（外部请求）
 */
@RestController
@RequestMapping("/iva_book")
public class IvaBookController {


    @Autowired
    private IvaBookService ivaBookService;

    /**
     * 分页查询
     * @param ivaBookDto
     * @return
     */
    public List<IvaBookDto> queryPage(IvaBookDto ivaBookDto) {
        return ivaBookService.queryPage(ivaBookDto);
    }
}
